#ifndef ADMINFOODITEM_H
#define ADMINFOODITEM_H

#include <QWidget>
#include <QListWidget>

#include "Food.h"
#include "EditFoodWindow.h"
#include "ui_EditFoodWindow.h"
#include "FoodTable.h"

namespace Ui {
class AdminFoodItem;
}

class AdminFoodItem : public QListWidget
{
    Q_OBJECT

public:
    explicit AdminFoodItem(QListWidget *parent = nullptr);
    ~AdminFoodItem();
    void init(Food food);   //初始化ui界面

signals:
    void dataChange();
    void dataChange2();

private slots:
    void on_control_btn_clicked();
    void on_query_btn_clicked();
    void replyDataChange();

private:
    Ui::AdminFoodItem *ui;
};

#endif // ADMINFOODITEM_H
